package com.linzm.structuraltype.decorator05;

import com.linzm.structuraltype.decorator05.shape.Shape;

/**
 * @Author zimingl
 * @Date 2023/4/16 1:28
 * @Description: ShapeDecorator
 */
public abstract class ShapeDecorator implements Shape {
    protected Shape decoratedShape;

    public ShapeDecorator(Shape decoratedShape) {
        this.decoratedShape = decoratedShape;
    }

    public void draw() {
        decoratedShape.draw();
    }
}
